from urllib import parse
data = {
    "id": 1,
    "name": "xyp",
}
u = parse.urlencode(data)   # 进行编码
url = "http://59468.cn/?{}".format(u)
print(u)
x = parse.unquote(u)    # 进行解码
print(x)

print(url)
